import request from '@/utils/request'

const path = '/admin/system/sysUser'

export const FindByPage = (pageNum,pageSize,data)=>{
    return request({
        url: `${path}/findByPage/${pageNum}/${pageSize}`,  //模板字符串
        method: 'post',
        data   // 数据存放请求体   后端:@RequestBody
    })
}

export const Save = (data)=>{
    return request({
        url: `${path}/save`,  //模板字符串
        method: 'post',
        data
    })
}


export const GetById = (id)=>{
    return request({
        url: `${path}/getById/${id}`, 
        method: 'get'
    })
}


export const Update = (data)=>{
    return request({
        url: `${path}/update`,  //模板字符串
        method: 'put',
        data
    })
}


export const DeleteById = (id)=>{
    return request({
        url: `${path}/deleteById/${id}`, 
        method: 'delete'
    })
}